MailPoet\Newsletter\NewslettersRepository S

Total Complexity 35
Dependencies 26
Dependents 43
Total lines 572
Lines of code 447
Logical lines of code 117
Comment lines 58
Methods 21
Properties 2

Methods 21

Method Rating Maintainability Complexity Lines of code
getArchives()
A
43 7 49
bulkDelete()
A
36 3 96
getAnalytics()
S
43 3 48
bulkRestore()
S
50 2 32
bulkTrash()
S
50 2 30
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedTask()
S
58 1 17
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findDraftByTypes()
S
61 1 14
findActiveByTypes()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
getStandardNewsletterList()
S
62 1 13
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
setAsCorrupt()
S
74 1 5
__construct()
S
73 1 5
getCorruptNewsletters()
S
78 1 3
getEntityClassName()
S
82 1 3
fetchChildrenIds()
S
67 1 8